package com.milhouz.wormdroid.gl.view;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.milhouz.wormdroid.R;

public class DialogTestView extends Dialog implements OnClickListener {

	private Button cancelButton;
	private Context mContext;

	public DialogTestView(Context context) {
		super(context);
		mContext = context;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dialog);
		cancelButton = (Button) findViewById(R.id.quitDialog);
		cancelButton.setOnClickListener(this);
	}

	public void onClick(View view) {
		switch (view.getId()) {
		case R.id.quitDialog:
			dismiss();
			break;
		}
	}

}
